<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<jsp:include page="validate.jsp"></jsp:include>
	<head>
		<base href="<%=basePath%>">

		<title>GPS Tracking Application</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="gps tracker, gprs">
		<meta http-equiv="description"
			content="A web displaying gps coordinates on a map.">

		<link rel="stylesheet" type="text/css" href="CSS/divs.css">

	</head>

	<body>
		<div id="row1">
			<center>
				<img src="images/gpsbanner.jpg" alt="" name="Banner" width="950"
					height="100" id="Banner" />
			</center>
		</div>
		<center>
			<h2>
				Welcome to GPS Tracker
			</h2>
			Current time is
			<%=new Date()%>
			<br />

			<!-- Code to view all records in database -->
			<p>
				<jsp:useBean id="displayer" class="org.nus.DBDisplayer" />
				<jsp:getProperty name="displayer" property="dataList" />
			</p>
		</center>

		<div id="Menu">

			<a href="viewall.jsp" title="List all data">Home</a>
			<br />
			<a href="clickone.jsp" title="Show data on map">Map View</a>
			<br />
			<a href="adduser.jsp" title="Show/add users">Show/Add User</a>
			<br />
			<a href="contact.html" title="Contact us">Contact</a>
			<br />
			<a href="logout.do" title="Log Out">Log out</a>
			<br />

		</div>

	</body>
</html>